package com.gitee.huanminabc.fastboot.load.classload;

import com.gitee.huanminabc.fastboot.common.InitializeBean;
import com.gitee.huanminabc.fastboot.context.AppContext;
import com.gitee.huanminabc.fastboot.event.AppListener;

/**
 * @description:
 * @author: huanmin
 * @create: 2025-04-17 16:20
 **/
public class AppContainerInitClassLoad implements ClassLoadIntercept {
    @Override
    public void peek(Class<?> clazz) throws Exception {
        if (InitializeBean.class.isAssignableFrom(clazz)) {
            AppContext.containerInitMethods.add(clazz.getMethod("init"));
        }
    }
}
